package area;

import java.util.ArrayList;
import java.util.List;
import studentsAndDocentWithTutorship.Docent;
import subjectAndProfessorship.Subject;
/**
 * 
 * @author Maria Laura Medici
 *
 */

public class Area {
	/* ******************************** Variables ******************************** */
	private String nameArea; 
	private Docent director;
	private List<Docent> docents = new ArrayList<Docent>();
	private List<Subject> subjects = new ArrayList<Subject>();
	
	
	/* ******************************* Constructor ******************************* */
	public Area(String name, Docent director){
		this.nameArea= name;
		this.director =director;
	}
	/* ********************************* Metodos ********************************* */
	public void addSubject(Subject materia){
		//agrega una materia al Area
		this.getSubjects().add(materia);
	}
	
	public void removeSubject(Subject materia){
		//saca una materia del Area
		this.getSubjects().remove(materia);
	}
	
	public void addDocent(Docent docente){
		//agrega un docente al Area
		this.getDocents().add(docente);
	}
	
	public void removeDocent(Docent docente){
		//saca un docente del area
		this.getDocents().remove(docente);
	}



	/* ******************************** Get & Set ******************************** */
	public void setNameArea(String nameArea) {
		this.nameArea = nameArea;
	}

	public String getNameArea() {
		return nameArea;
	}

	public void setDirector(Docent director) {
		this.director = director;
	}

	public Docent getDirector() {
		return director;
	}

	public void setDocents(List<Docent> docents) {
		this.docents = docents;
	}

	public List<Docent> getDocents() {
		return docents;
	}

	public void setSubjects(List<Subject> subjects) {
		this.subjects = subjects;
	}

	public List<Subject> getSubjects() {
		return subjects;
	}
	
	
	
	
}
